package com.file.manage.domain.request;

import com.file.manage.domain.enums.UserRole;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;



/**
 * 注册请求参数
 */
@Data
@Schema(title = "注册请求参数")
public class RegisterRequest {
    @Schema(title = "名称", nullable = true)
    @Size(max = 100, message = "名称长度不能超过100个字符")
    private String name;

    @Schema(title = "账号", nullable = true)
    @Size(max = 100, message = "账号长度不能超过100个字符")
    private String account;
    @Size(max = 100, message = "密码长度不能超过100个字符")
    @Schema(title = "密码", nullable = true)
    private String password;
    @NotNull(message = "角色不能为空")
    @Schema(title = "角色", nullable = true)
    private UserRole role;
}
